Skip to content

Conversation

@ice-priapus
Copy link
Contributor

Description

Additional Notes

wallet token filter

Task ID

ION-5043

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation
  • Chore

Screenshots (if applicable)

RPReplay_Final1768497332.MP4

@ice-morpheus ice-morpheus enabled auto-merge (squash) January 15, 2026 17:17
@ice-priapus ice-priapus disabled auto-merge January 15, 2026 17:18
Comment on lines +315 to +320
if (!tokenizedCommunityTokenTypeExists) {
await m.addColumn(
schema.coinsTable,
schema.coinsTable.tokenizedCommunityTokenType,
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we write migration script to set token type for exist rows?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we haven't released the issue no user in prod has tokens, so no need to migrate yet. Also coin sync happens once a day, so it will overwrite the values

SelectNetworkToReceiveNftRoute().push<void>(ref.context);
case WalletTabType.coins:
ReceiveCoinRoute().push<void>(context);
case WalletTabType.creatorTokens:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh, we need to delete this page, so, then it's much easier here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Balance page? I think we are using it

@ice-morpheus ice-morpheus force-pushed the feature/wallet-coins-filter branch 5 times, most recently from 332922a to 420b915 Compare January 16, 2026 09:41
@ice-morpheus ice-morpheus force-pushed the feature/wallet-coins-filter branch from 420b915 to 0f0fad9 Compare January 16, 2026 10:06
@ice-morpheus ice-morpheus force-pushed the feature/wallet-coins-filter branch from 0f0fad9 to edf4fea Compare January 16, 2026 10:26
if (selectedFilter == TokenTypeFilter.all) {
return true;
}
return group.coins.any((coinInWallet) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.any inside .where can be O(n^2) in worst case, it's better to avoid logic like that inside Widget.build methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was like this before my changes

 final filteredGroups = groups?.where((group) {
      return group.coins.any((coin) => coin.coin.isCreatorToken == isCreatorTokensTab);

we have only few coins per group, mostly one coin. I don't think it would be an issue here

@ice-morpheus ice-morpheus force-pushed the feature/wallet-coins-filter branch 4 times, most recently from 41ebc5c to b8a2983 Compare January 16, 2026 14:00
@ice-morpheus ice-morpheus force-pushed the feature/wallet-coins-filter branch from b8a2983 to 72cdcb0 Compare January 16, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants